.class Lcom/instagram/android/b/a;
.super Lcom/fasterxml/jackson/databind/ser/std/StdSerializer;
.source "AnalyticsEventSerializer.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/fasterxml/jackson/databind/ser/std/StdSerializer",
        "<",
        "Lcom/instagram/b/b;",
        ">;"
    }
.end annotation


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 16
    const-class v0, Lcom/instagram/b/b;

    invoke-direct {p0, v0}, Lcom/fasterxml/jackson/databind/ser/std/StdSerializer;-><init>(Ljava/lang/Class;)V

    .line 17
    return-void
.end method


# virtual methods
.method public a(Lcom/instagram/b/b;Lcom/fasterxml/jackson/a/h;Lcom/fasterxml/jackson/databind/SerializerProvider;)V
    .locals 3
    .parameter
    .parameter
    .parameter

    .prologue
    .line 23
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/h;->writeStartObject()V

    .line 27
    const-string v0, "name"

    invoke-virtual {p1}, Lcom/instagram/b/b;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p2, v0, v1}, Lcom/fasterxml/jackson/a/h;->writeStringField(Ljava/lang/String;Ljava/lang/String;)V

    .line 28
    const-string v0, "time"

    invoke-virtual {p1}, Lcom/instagram/b/b;->d()J

    move-result-wide v1

    invoke-static {v1, v2}, Lcom/instagram/android/b/f;->a(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p2, v0, v1}, Lcom/fasterxml/jackson/a/h;->writeStringField(Ljava/lang/String;Ljava/lang/String;)V

    .line 32
    invoke-virtual {p1}, Lcom/instagram/b/b;->b()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 33
    const-string v0, "module"

    invoke-virtual {p1}, Lcom/instagram/b/b;->b()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p2, v0, v1}, Lcom/fasterxml/jackson/a/h;->writeStringField(Ljava/lang/String;Ljava/lang/String;)V

    .line 36
    :cond_0
    invoke-virtual {p1}, Lcom/instagram/b/b;->a()Lcom/fasterxml/jackson/databind/node/ObjectNode;

    move-result-object v0

    invoke-virtual {v0}, Lcom/fasterxml/jackson/databind/node/ObjectNode;->size()I

    move-result v0

    if-eqz v0, :cond_1

    .line 37
    const-string v0, "extra"

    invoke-virtual {p2, v0}, Lcom/fasterxml/jackson/a/h;->writeFieldName(Ljava/lang/String;)V

    .line 38
    invoke-virtual {p1}, Lcom/instagram/b/b;->a()Lcom/fasterxml/jackson/databind/node/ObjectNode;

    move-result-object v0

    invoke-virtual {v0, p2, p3}, Lcom/fasterxml/jackson/databind/node/ObjectNode;->serialize(Lcom/fasterxml/jackson/a/h;Lcom/fasterxml/jackson/databind/SerializerProvider;)V

    .line 41
    :cond_1
    invoke-virtual {p2}, Lcom/fasterxml/jackson/a/h;->writeEndObject()V

    .line 42
    return-void
.end method

.method public synthetic serialize(Ljava/lang/Object;Lcom/fasterxml/jackson/a/h;Lcom/fasterxml/jackson/databind/SerializerProvider;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"
    .parameter "x2"

    .prologue
    .line 13
    check-cast p1, Lcom/instagram/b/b;

    .end local p1
    invoke-virtual {p0, p1, p2, p3}, Lcom/instagram/android/b/a;->a(Lcom/instagram/b/b;Lcom/fasterxml/jackson/a/h;Lcom/fasterxml/jackson/databind/SerializerProvider;)V

    return-void
.end method
